﻿namespace ACE
{
    //<nodes><node>
    //  <id>120007</id>
    //  <name>JONFOVMHOST-Default Web Site</name>
    //  <type>Other</type>
    //  <tierId>3059</tierId>
    //  <tierName>Default Web Site</tierName>
    //  <machineId>2457</machineId>
    //  <machineName>JONFOVMHOST</machineName>
    //  <machineOSType>Other</machineOSType>
    //  <machineAgentPresent>true</machineAgentPresent>
    //  <machineAgentVersion>4.0.2.13</machineAgentVersion>
    //  <appAgentPresent>true</appAgentPresent>
    //  <appAgentVersion>4.0.2.13</appAgentVersion>
    //  <ipAddresses>
    //    <ipAddress>192.168.0.172</ipAddress>
    //  </ipAddresses>
    //  <agentType>DOT_NET_APP_AGENT</agentType>
    //</node>

    public class Node
    {
        public Node(
            string id,
            string name,
            string type,
            string tierId,
            string tierName,
            string machineId,
            string machineName,
            string machineOSType,
            string machineAgentPresent, 
            string machineAgentVersion,
            string appAgentPresent,
            string appAgentVersion,
            string ipAddress,
            string agentType)
        {
            Id = id;
            Name = name;
            Type = type;
            TierId = tierId;
            TierName = tierName;
            MachineId = machineId;
            MachineName = machineName;
            MachineOSType = machineOSType;
            MachineAgentPresent = machineAgentPresent;
            MachineAgentVersion = machineAgentVersion;
            AppAgentPresent = appAgentPresent;
            AppAgentVersion = appAgentVersion;
            IpAddress = ipAddress;
            AgentType = agentType;
        }
        //[DisplayName("File Name")]
        public string MachineName { get; internal set; }
        public string AgentType { get; internal set; }
        public string TierName { get; internal set; }
        public string MachineAgentVersion { get; internal set; }
        public string AppAgentVersion { get; internal set; }

        public string Id { get; internal set; }
        public string Name { get; internal set; }
        public string Type { get; internal set; }
        public string TierId { get; internal set; }
        public string MachineId { get; internal set; }
        public string MachineOSType { get; internal set; }
        public string IpAddresses { get; internal set; }
        public string IpAddress { get; internal set; }
        public string MachineAgentPresent { get; internal set; }
        public string AppAgentPresent { get; internal set; }

    }
}